from django.conf.urls import url

from accounts import views


urlpatterns = [
    # '/accounts/' + this.username + '/sms/token/?text='
    url(r'^(?P<username>\w+)/sms/token/$', views.FindPasswordFirstAPIView.as_view()),
    # this.host+'/sms_codes/?access_token='
    url(r'^sms_codes/$', views.FindPasswordSecondAPIView.as_view()),
# '/accounts/' + this.username + '/password/token/?sms_code
    url(r'^(?P<username>\w+)/password/token/$', views.FindPasswordThirdAPIView.as_view()),
    # '/accounts/'+ this.user_id +'/password/
    url(r'^(?P<user_id>\d+)/password/$', views.FindPasswordFourthAPIView.as_view()),
]